package org.jeecg.modules.system.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 机构主数据
 * @Author: jeecg-boot
 * @Date:   2024-11-27
 * @Version: V1.0
 */
@Data
@TableName("org_main")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="org_main对象", description="机构主数据")
public class OrgMain implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**机构编码*/
	@Excel(name = "机构编码", width = 15)
    @ApiModelProperty(value = "机构编码")
    private java.lang.String orgCode;
	/**机构级别*/
	@Excel(name = "机构级别", width = 15, dicCode = "org_level")
	@Dict(dicCode = "org_level")
    @ApiModelProperty(value = "机构级别")
    private java.lang.String orgLevel;
	/**上级机构*/
	@Excel(name = "上级机构", width = 15, dictTable = "org_main", dicText = "full_name", dicCode = "full_name")
	@Dict(dictTable = "org_main", dicText = "full_name", dicCode = "full_name")
    @ApiModelProperty(value = "上级机构")
    private java.lang.String parentOrg;
	/**机构全称*/
	@Excel(name = "机构全称", width = 15)
    @ApiModelProperty(value = "机构全称")
    private java.lang.String fullName;
	/**机构简称*/
	@Excel(name = "机构简称", width = 15)
    @ApiModelProperty(value = "机构简称")
    private java.lang.String name;
	/**机构类型*/
	@Excel(name = "机构类型", width = 15, dicCode = "org_type")
	@Dict(dicCode = "org_type")
    @ApiModelProperty(value = "机构类型")
    private java.lang.String orgType;
	/**所处地区*/
	@Excel(name = "所处地区", width = 15)
    @ApiModelProperty(value = "所处地区")
    private java.lang.String area;
	/**机构地址*/
	@Excel(name = "机构地址", width = 15)
    @ApiModelProperty(value = "机构地址")
    private java.lang.String address;
	/**联系人*/
	@Excel(name = "联系人", width = 15)
    @ApiModelProperty(value = "联系人")
    private java.lang.String contacter;
	/**联系电话*/
	@Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private java.lang.String contactPhone;
	/**邮政编码*/
	@Excel(name = "邮政编码", width = 15)
    @ApiModelProperty(value = "邮政编码")
    private java.lang.String yzCode;
	/**社会统一信用代码*/
	@Excel(name = "社会统一信用代码", width = 15)
    @ApiModelProperty(value = "社会统一信用代码")
    private java.lang.String socialCredit;
	/**计税方法*/
	@Excel(name = "计税方法", width = 15)
    @ApiModelProperty(value = "计税方法")
    private java.lang.String taxMethod;
	/**税率*/
	@Excel(name = "税率", width = 15)
    @ApiModelProperty(value = "税率")
    private java.lang.String taxRate;
	/**服务型税率*/
	@Excel(name = "服务型税率", width = 15)
    @ApiModelProperty(value = "服务型税率")
    private java.lang.String serviceTaxRate;
	/**是否市区机构*/
	@Excel(name = "是否市区机构", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否市区机构")
    private java.lang.String isCityOrg;
	/**国家*/
	@Excel(name = "国家", width = 15)
    @ApiModelProperty(value = "国家")
    private java.lang.String country;
	/**成立日期*/
	@Excel(name = "成立日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "成立日期")
    private java.util.Date establishDate;
	/**启用状态*/
	@Excel(name = "启用状态", width = 15, dicCode = "up_status")
	@Dict(dicCode = "up_status")
    @ApiModelProperty(value = "启用状态")
    private java.lang.String upStatus;
	/**数据状态*/
	@Excel(name = "数据状态", width = 15, dicCode = "data_status")
	@Dict(dicCode = "data_status")
    @ApiModelProperty(value = "数据状态")
    private java.lang.String dataStatus;
	/**禁用人*/
	@Excel(name = "禁用人", width = 15)
    @ApiModelProperty(value = "禁用人")
    private java.lang.String forbiddenBy;
	/**禁用日期*/
	@Excel(name = "禁用日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "禁用日期")
    private java.util.Date forbiddenDate;
	/**是否允许关联物料*/
	@Excel(name = "是否允许关联物料", width = 15)
    @ApiModelProperty(value = "是否允许关联物料")
    private java.lang.String isSynMaterial;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
}
